import { createI18n } from "vue-i18n"
import en from "./en"
import zh from "./zh"
if (localStorage.getItem("vuex")) {
    var lang = JSON.parse(localStorage.getItem("vuex")).lang || "zh"
} else {
    var lang = "zh"
}

const i18n = createI18n({
    locale: lang,
    messages: {
        zh,
        en,
    },
})
export default i18n
